package Operation;

import Book.Book;

import Book.BookList;

public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        for (int i = 0; i < bookList.getBookSize(); i++) {
            Book book = bookList.getBook(i);
            System.out.println(book.toString());
        }
    }
}
